package com.design.factory;

import org.springframework.stereotype.Component;

/**
 * @Auther: zch
 * @Date: 2019/6/29 14:50
 * @Description: （小轿车 实现 车子接口）
 */
@Component
public class XiaoJiaoChe implements Car {
    public boolean isAvailable(BizRequest bizRequest) {
        return bizRequest.getBizType().equals(BizEnum.XiaoJiaoChe.getBizType());
    }

    public void bizRun() {
        System.out.println("小轿车是带人跑的");
    }

}
